package com.wdf.helper;

public class DisplayUtils {
	
	public static int max_length = 20;
	
	public static String displayTitle(String title){
		if(title.length()>12){
			return title.substring(0, 12)+"......";
		}

		return title;
	}
	
	public static String displayContent(String content){
		if(content.length()>max_length){
			return content.substring(0, max_length)+"......";
		}
		
		
		return content;
	}

}
